<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	 xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"
	xmlns:bf="http://www.bssmanager.com/jsf" xmlns:c="http://java.sun.com/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions">
	

	
		<table width="100%"><tbody>
			<tr>
                <td><h2>Bharat Seva Sangha - WebManager</h2></td>
                <td align="right" class="loginPending">
                	<table>
                		<tr>
                			<td valign="top">
                				<form method="POST" action="#{request.contextPath}/pages/login.jsf?logout" id="logoutForm">
									<span style="color:black">Welcome : ${request.remoteUser} |	<a style="cursor: pointer;" onclick="logoutForm.submit();">Logout</a> | </span>
									<input type="hidden" name="${_csrf.parameterName}"	value="${_csrf.token}" />
								</form>
                			</td>
                			<td valign="top">
                				<h:form>
									<a4j:commandLink value="Backup" action="#{backupUtil.backup}" limitToList="true" style="color: black" ajaxSingle="true"
										onclick="showLoading();" oncomplete="hideLoading();alert('#{backupUtil.statusText}');"						
										/>
								</h:form>
                			</td>
                		</tr>
                	</table>
                </td>
            </tr>           
            <tr>            	
            	<td colspan="2" align="right" class="loginPending">
            		<h:form id="prefForm">
            			<h:panelGrid columns="2">
            			<h:outputText value="Skin:" />
	            		<rich:comboBox  value="#{preferences.skin}" suggestionValues="#{skinFactory.skins}"
											enableManualInput="false" onchange="showLoading();prefForm.submit();"
											width="100">
																					
						</rich:comboBox>
						</h:panelGrid>
					</h:form>
            	</td>
            </tr>
            
            </tbody></table>

</ui:composition>